class CreateElinks < ActiveRecord::Migration
  def self.up
    create_table "elinks", :force => true do |t|
      t.column "elink", :text
      t.column "tema_id", :integer
      t.column "created_at", :datetime
      t.column "elink_size", :integer
      t.column "elink_hash", :string
    end

    add_index "elinks", ["elink_hash", "elink_size"], :name => "elinks_elink_hash_index", :unique => true
  end

  def self.down
    remove_index "elinks", "elink_hash"

    drop_table "elinks"
  end
end
